package com.dn.springboot.docker;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;


@SpringBootApplication

@Controller
public class ApplicationBootstrap {

    @RequestMapping("/")
    public String index(Model model){
        model.addAttribute("name","Hello Docker world");
        return "index";
    }

    public static void main(String[] args) {
        SpringApplication.run(ApplicationBootstrap.class,args);
    }
}
